package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_ANSWER;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class SubmitAnswerApi implements IRequestApi, IRequestType {


    private ArrayList<ReqSubmitAnswerBean> overripe;

    public SubmitAnswerApi(ArrayList<ReqSubmitAnswerBean> overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_ANSWER;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqSubmitAnswerBean {

        private String dulcitol;
        private String prostatectomy;

        public ReqSubmitAnswerBean(String dulcitol, String prostatectomy) {
            this.dulcitol = dulcitol;
            this.prostatectomy = prostatectomy;
        }
    }

    public static final class ResSubmitAnswerBean {
        private int kultur;
        private int tigrish;

        public int getKultur() {
            return kultur;
        }

        public int getTigrish() {
            return tigrish;
        }
    }

}

